package patrol.mobile.com.mobilepatrol.widget;

import android.content.Context;
import android.support.v7.widget.AppCompatSeekBar;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.SeekBar;

/**
 * Created by K on 2018/9/18.
 * des: 不能拖动的seek bar
 */
public class NoDragSeekBar extends AppCompatSeekBar {

    public NoDragSeekBar(Context context) {
        super(context);
    }

    public NoDragSeekBar(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoDragSeekBar(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return false;
    }
}